package com.zhongkun.datahome.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongkun.datahome.service.domain.MiniProgramVisionSetting;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author: MinKun
 * @Date: Created in 2025/5/8
 * @Description:
 */
public interface MiniProgramVisionSettingMapper extends BaseMapper<MiniProgramVisionSetting> {

    @Select("select * from mini_program_vision_setting where del_flag = 0")
    List<MiniProgramVisionSetting> queryAllList();

    @Update("update mini_program_vision_setting set url = #{url} where code = #{code}")
    int updateByCode(@Param("url") String url, @Param("code") String code);

    @Delete("delete from mini_program_vision_setting")
    int deleteAll();
}
